]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
css: add a 'hidden' style class
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 4 Jun 2012 16:21:20 +0000 (18:21 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 5 Jun 2012 16:12:41 +0000 (18:12 +0200)
Used for elements that are not supposed to be shown.

https://bugzilla.gnome.org/show_bug.cgi?id=675341

data/theme/gnome-shell.css
js/ui/polkitAuthenticationAgent.js

index a229653bda6c0433f342bd4b7501f09ea91a720d..6f45cfffe163d081c687f9968b9ddbb2e216151d 100644 (file)
@@ -1948,10 +1948,12 @@ StScrollBar StButton#vhandle:hover
     padding-bottom: 8px;
 }
 
-/* intentionally left transparent to avoid dialog changing size */
+.hidden {
+    color: rgba(0,0,0,0);
+}
+
 .prompt-dialog-null-label {
     font-size: 10pt;
-    color: rgba(0,0,0,0);
     padding-bottom: 8px;
 }
 
index 6a05e1a0e4f128c6bc78dfd9ead92c32fbbf5262..20386317426f0ef641bcce4bdc2e3e70e7102c4f 100644 (file)
@@ -167,6 +167,7 @@ const AuthenticationDialog = new Lang.Class({
          */
         this._nullMessageLabel = new St.Label({ style_class: 'prompt-dialog-null-label',
                                                 text: 'abc'});
+        this._nullMessageLabel.add_style_class_name('hidden');
         this._nullMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this._nullMessageLabel.clutter_text.line_wrap = true;
         messageBox.add(this._nullMessageLabel);